﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>一起逛</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="./css/talk.css">
<script language="JavaScript" type="text/javascript">
function pastemsg(event){
    var items=event.clipboardData.items;
	if(items){
	    for(var i=0;i<items.length;i++){
		    if (items[i].type.indexOf("image") !== -1) {
               // We need to represent the image as a file,
               var blob = items[i].getAsFile();
               // and use a URL or webkitURL (whichever is available to the browser)
               // to create a temporary URL to the object
               var URLObj = window.URL || window.webkitURL;
               var source = URLObj.createObjectURL(blob);
 
               // The URL can then be used as the source of an image
               var img=createImage(source);
			   var doc=document.getElementById('msgArea').contentDocument;
			   doc.body.appendChild(img);
			   //$('#msgArea').append(img);
			   alert(doc.body.innerHTML);
			}
		}
	}
}
function loadmsgarea(){
    var doc=document.getElementById('msgArea').contentDocument;
	doc.designMode="on";
	doc.onpaste=pastemsg;
}
</script>
</head>
<div id="sendmsg_panel">
  <ul id="icons" class="ui-widget ui-helper-clearfix">
    <li class="ui-state-default ui-corner-all" title="??">
	  <span class="ui-icon ui-icon-arrowreturnthick-1-w" id='bklist_pane'></span>
	</li>
  </ul>
  <h2 id='groupname'>Incoming:</h2>
  <div id="iResp"></div>
  <h2> </h2>
  <form name="sendForm" id="sendForm">
    <div class="spaced"><input type="hidden" name="sendTo"></div>
	  <!--<div class="spaced"><textarea name="msg" id='msgArea' rows="3" cols="80" tabindex="1"></textarea></div>-->
	<div class="spaced">
	  <iframe name="msg" id='msgArea' onload="loadmsgarea();" tabindex="1"></iframe>
	</div>
    <div class="spaced"><input type="submit" id="sendbt" value="发送" tabindex="2"></div>
  </form>
</div>
</body>
</html>